<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
    <head>
        <title>org.gephi.statistics.spi</title>
    </head>
    <body>
        <p>Interfaces for creating new statistics and metrics algorihms.</p>
        <h3>Create a new Metrics</h3>
        <ol>
            <li>
                Create a new module and set <code>StatisticsAPI</code> and
                <code>GraphAPI</code> as dependencies.
            </li>
            <li>
                Create a new builder class by implementing <code>StatisticsBuilder</code>
            </li>
            <li>
                Add <b>@ServiceProvider</b> annotation to your builder, that it can
                be found by the system. Set <code>StatisticsBuilder</code> as the
                annotation parameter.
            </li>
            <li>
                Create a new class that implements <code>Statistics</code>. Write you
                code in the <code>execute()</code> method.
            </li>
            <li>
                Create a new class implementing <code>StatisticsUI</code> and add
                <b>@ServiceProvider</b> annotation as well.
            </li>
            <li>
                In both <code>StatisticsBuilder</code> and <code>StatisticsUI</code>,
                return your <code>Statistics</code> class object for the
                <code>getStatisticsClass()</code> method.
            </li>
        </ol>
        <p>To let your export task be cancelled and its progress watched, implement <code>LongTask</code> interface.</p>
    </body>
</html>
